package com.munhrasoft.webloja.bd;

import javax.ejb.EJB;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;

import com.munhrasoft.webloja.beans.AplicacaoBean;
import com.munhrasoft.webloja.beans.ProdutosBean;

@WebServlet(loadOnStartup = 0)
public class InicializadorBD extends HttpServlet{

	private static final long serialVersionUID = 1L;

	@EJB
	private AplicacaoBean appBean;
	
	@EJB
	ProdutosBean produtoBean;

	@Override
	public void init(ServletConfig servletConfig) throws ServletException {
		super.init(servletConfig);
		appBean.checkDatabase();
	}

}
